{% extends "blog/index.html" %}
{% block bloglist %} 

<ul class="breadcrumb">
  {% if blogtype == 'all' %}
        <li><a href="/blog/">全部</a> <span class="divider">》</span></li>
<!--         <li><a href="#">类库</a> <span class="divider">/</span></li>
        <li class="active">数据</li> -->
  {% endif %}


  {% if blogtype == 'Y' %}
        <li><a href="/blog/">全部</a> <span class="divider">》</span></li>
        <li><a href="/blog/Y">原创</a> <span class="divider">》</span></li>
  {% endif %}


  {% if blogtype == 'Z' %}
        <li><a href="/blog/">全部</a> <span class="divider">》</span></li>
        <li><a href="/blog/Z">转载</a> <span class="divider">》</span></li>
  {% endif %}
</ul>


<ul class="unstyled" id="bloglist">
          {% for blog in blog %}
          <li>

            <ul class="unstyled">
              <li class="active" style=""><h4><a href="/detail/{{blogtype}}/{{blog.id}}/">{{blog.title}}</a></h4></li>
              <li>{{blog.content|safe|truncatewords:"120"}}</li>

              <li>
                <br />
                
                  <a href="/blog/Y" title="显示所有国外新闻日志">
                    <i class="icon-comment icon-red"></i> &nbsp;评论
                  </a>  
                      0
                
                 &nbsp;
                
                
                  <a href="/blog/Z" title="显示所有国外新闻日志">
                    <i class="icon-share-alt icon-red"></i> &nbsp;转载
                  </a>  
                      0
                
              </li>


              <li><br /><br /><br /></li>

            </ul>

          
          </li>
          {% endfor %}
          
          
          

 </ul>


      <div>
        <a href="?page=1">首页</a>
        {% if blog.has_previous %}
        <a href="?page={{ blog.previous_page_number }}">&lt; 上一页
        </a>
        {% endif %}
        <span>
        {% for p in page_range %}
        {% ifequal p blog.number %}
        <span class="current">{{p}}</span>
        {% else %}
        <a href="?page={{p}}" title="第{{p}}页">
        {{p}}</a>
        {% endifequal %}
        {% endfor %}
        </span>
        {% if blog.has_next %}
        <a href="?page={{ blog.next_page_number }}">下一页  &lt;</a>
        {% endif %}
        <a href="?page={{ blog.paginator.num_pages }}">&lt;末页</a>
        <a >[第{{ blog.number }}/{{ blog.paginator.num_pages }}页]</a>
      </div>


<!-- <button id="nextblog" class="btn btn-mini btn-primary">查看更多</button> -->

<script>
// s='<li><ul class="unstyled">'+
//               '<li class="active" style="background:#F2FBF2;"><h4><a href="/detail/{{blogtype}}/{{blog.id}}/">{{blog.title}}123</a></h4></li>'+
//               '<li>{{blog.content|safe|truncatewords:"120"}}31wqeqeq12313,123131,13123,1,3</li>'+

//           '<li><br /><code><a href="/blog/Y"><i class="icon-comment icon-red"></i> &nbsp;评论</a> 0</code>&nbsp;<code><a href="/blog/Z"><i class="icon-share-alt icon-red"></i> &nbsp;转载</a>  0</code></li>'+
//               '<li><hr /></li></ul></li>';


// $(document).ready(function(){
//   $("#nextblog").click(function(){
//     $("#bloglist").append(s);
//   });
// });
</script>
{% endblock %}